package org.academic.texteditor.gui.util;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import org.academic.texteditor.gui.PrincipalWindow;
import org.academic.texteditor.gui.form.AbstractInternalFrame;

public class OpenWindowListener implements ActionListener {

	private final AbstractInternalFrame frame;

	public OpenWindowListener(AbstractInternalFrame frame) {
		this.frame = frame;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		PrincipalWindow.getInstance().openWindow(frame);
	}

}
